home *** CD-ROM | disk | FTP | other *** search
- ; DEFAULT.WBT
- ; Whne WinBatch is executed without any parameters, it attempts to locate
- ; and execute this DEFAULT.WBT file.
-
- ActWin=WinGetActive() ;Get currently active Window
- VerWB=Version() ;Get Version numbers for title
- VerDLL=VersionDLL()
-
- Path=FileLocate("DEFAULT.WBT") ;Go find where default.wbt lives
- Path=FilePath(Path) ;Strip off default.wbt file name
- List=FileItemize("%Path%*.WBT") ;Get a list of WBT files in that dir
- x=ItemLocate("DEFAULT.WBT",List," ") ;Find DEFAULT.WBT in the list
- List=ItemRemove(x,List," ") ;Remove DEFAULT.WBT from the list
-
-
- RunMe=ItemSelect("WinBatch %VerWB% / DLL %VerDLL%",List," ")
- ;Allow user to select one
-
- WinActivate(ActWin) ;Activate original Window
-
- if RunMe=="" then exit ;Gee, nothing was selected
- call(RunMe,"") ;And call our little file
- Exit ;Bye Bye
-